package top.broncho.lottery.ui.base

import androidx.fragment.app.Fragment
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.cancel
import org.jetbrains.anko.AnkoLogger

abstract class BaseFragment : Fragment(), AnkoLogger, CoroutineScope by MainScope() {

    override fun onDestroyView() {
        super.onDestroyView()
        cancel()
    }
}